achievement_test : achievements_test [-guid <accumulator guid>] [-bits <bitfield>]
addDNA : increases your DNA points
aev : <name> [-d3] [-loop] - Starts audio event <name> optionally specify 3d or looped sound
amb :
anim : Animation viewer cheat for loading creatures, animations, etc.
animmgr : Animation system cheat for stats, cache management, property setting, etc.
app : App control: -pause, -unpause, -speed <float>, -step <ms:int>, -quit, -minimize
asc : Various audio system cheats shoehorned into one cheat.
-dump dumps the entire sound map out to the log
-dbg toggles debug mode on and off
-droplisten toggles leaving the listener in place
-showmic toggles showing the microphone position
-showprim toggles showing the primitives
baker : Baker system management.
BehaviorController : BehaviorController [dump] [show]
behaviortree : Behavior tree debugging control
camera : various options to control the current camera
cinematic : Cinematic Manager control.
clear : Clears the debug console
colorLocalized : no description
crash : crash the game (for testing)
directories : lists directories
dumpBudget : toggles ongoing output of mspf budget stats
dumpEffects : Dumps info about currently running effects.
effect : Starts the named effect, or, with no arguments, stops the current effect.
effectsManager : Used to control the effect manager and global effect settings.
ev : evaluates the given expression
flora : flora system control
genCubeMap : Capture a cube map from selected point
genFragments : no description
genSceneViews : Capture 6 orthographic views of an object
globalthermonuclearwar: Simulates a bad end to the Cold War
gonzago : gonzago [nouns <show | hide >]
[input <show | hide | load (filename) >]
[simulators <show | hide | hide #first #last>]
[menus <debug | normal>]
[citynav <lanes | forces | off>]
[physcis <havok | gonzago>]
[creatureanim (filename) [numloops]]
[herddebug <on | off>]
[nestlevel <int:level>]
[ban #keytype #keygroup #keyinstance]
[numrelationships] ... prints the size of the map in the relationship simulator to the console
[name_gen <planet | star | tribe | creature | city | building | vehicle | all> (count)]
... prints out a list of randomly generated names of the given type, will print 20
if no count is specified.
[tribes] ... prints info about all the tribes on the planet
[dumptelemetry <on | off | inject>] ... inject submits inject.dat to the server. 'on' creates a file for future injection
help : [<pattern:string>] [-all] Lists help for all cheats, or those that match <pattern>
hints : enable or disable hints temporarily. use 'hints -off' / 'hints -on'
history : [<items:int>] Lists the last n commands in the command history
jobs : Show job manager status
key : Translate to/from keys
lights : Lighting manager control
listProps : Lists app properties, or properties in a given list
log : log output
logger : Used to control log system
material : Material manager control
memory : Controls memory profiler
mode : Show app mode, Set new app mode, or list all modes [-list]
model : Model cheat
modelTest : Model test cheat
modelWorld : Model manager control
movie : Movie cheat
mtr : Creates a trade route between player's city and all other cities in the world.
noAsserts : Disable asserts
offlineEffect : Run an effect offline
option : lists options or sets an option
otdb_test : Used to debug OTDB parameters
pausegate : Modifies or prints values of pause gate counters.
planetImpostor : Planet Impostor Test
planetTestBed : Planet Testbed - Writes to offlineEffect.log, if a mSeed is not specified, a random one is used.
pollen : Used to control pollinated content system
profiler : Control settings for in-game profiler
prop : <name:string> <value:bool> Sets app property
quit : Quit game
raid : Debug cheats for Raids.
refreshplantmaskmask: Forces a refresh of the city/tribe map (flora clear mask)
renderer : Renderer control
resource : Resource system management.
RTT : Controls the render target manager
settime : Sets the time of day at the avatar's position.
showLights : Show directional lights and where they are pointing
showpaths : Toggle whether or not to show vehicle path-planning paths
showPause : no description
showplantmaskmask : toggles whether the plant controller shows the city/tribe mask
skinpaint : Run a skinpaint effect
sound : Specify on or off to turn audio system on or off.
species_query : Used to test species queries to the OTDB
spinLights : Spin lights in phi-theta coordinates
starmanager : starmanager -dump <home|current|empires|status> -test
state : State manager control. With no arguments lists current state.
status : outputs current status window lines to log
swatchcamera : various options to control the current camera
takeSnap : Capture the screen into cameraSnapshot
takeThumb : Capture a thumbnail
terrain : terrain control and info
terrainEffectTest : Terrain Effect Test Cheat
terrainScript : terrain generation scripting control: control click to add an effect
testBed : Effects Testbed - Writes to offlineEffect.log, if a mSeed is not specified, a random one is used.
tester : Runs available Spore tests.
textures : Texture manager control
uilayout : Manipulates UI layouts.
uitools : Provides access to UI debug features.
usermusic : no description
validateHeap : Check memory blocks for corruption
ViewManager : ViewManager [dump] [views <on/off/old_school/standard>]
vwep : vwep {weapon number} changes all vehicles in game to given weapon
achievement_test
achievements_test [-guid <accumulator guid>] [-bits <bitfield>]
addDNA
increases your DNA points
aev
<name> [-d3] [-loop] - Starts audio event <name> optionally specify 3d or looped sound
amb
anim
Both -blocks and -load creature loading commands below take the
following common optional parameters:
* -pos <position:vector3> - position
* -rot <angle:float> - degrees of rotation around creature's z up vector
* -scale <scale:float> - creature instance scale
* -lod <lod:int> - force LOD level (0 = low, 3 = high)
* -add - adds instead of replaces creature
* -noMesh - doesn't create mesh
* -noCache - bypass the creatureanim cache
-blocks <creatureName:string> [-local] [common - see above]
THE -blocks OPTION IS CURRENTLY BROKEN.
Loads the named creature blocks file,
from Data/Creatures/temp/creatures (or UserData/Creatures if -local)
-load [<creatureName:string>]
[-instanceID <instanceID:number>]
[-groupId <groupId:number> | -baby]
[-typeId <typeId:number> | -flr | -cll]
[common - see above]
Loads a creature from the optional named crt file or the optional instanceId,
with the optional groupId (defaults to Data, or UserData if -local)
and typeId (defaults to crt type, or -flr, or -cll)
If no name or id is given then a random creature is chosen from Data\Editors\Creatures
-creatureGroup [<creatureName:string>]
[-instanceID <instanceID:number>]
[-groupId <groupId:number> | -baby]
[-typeId <typeId:number> | -flr | -cll]
[-num <creatureQuantity:int>]
[-center <groupCenter:vector3>]
[-radius <boundingRadius:float>]
[-same]
[-typefilter]
Works much like -load, but spawns multiple creatures placed randomly in a circle
defined by the center and radius specified.
The -same flag will force all creatures in the group to be the same creature
(which is only really useful with random creature selection)
The -typefilter parameter filters random creatures by the type (defaults to crt)
-remove [-creature <creatureNumber:int> | -all ]
Removes a creature by number. If no number removes current creature.
-selectCreature <creatureNumber:int>
Makes the specified creature the selected creature .
-scale <scale:float>
Sets the scale of the selected creature
The animation sequencing commands -anim, -animID and -wait below take the
following common optional parameters:
* -start | -stop
Start/stop the animation immediately, so you don't have to switch windows and hit
the space bar like a monkey every time you want to play a goddamned animation.
* -creature <creatureNumber:int> [<creatureNumber2:int>] | -all
A creature (or all creatures) other than the current, to apply this anim to.
If two creature numbers are given apply to the range covered by those numbers.
* -add | -replace <slot:int> | -insert <slot:int>
Determines where the animation will be added to the sequence.
* -cond <conditionFOURCC:string>
A condition code such as 'hit' or 'miss' which will apply to this animation.
-anim [<animationName:string>]
[-playbackTime <playbackTime:float>] [-duration <duration:float>]
[-instanceId <instanceId:number>]
[-filename]
Loads an animation on the current creature. Invoke with 'spacebar' and stop with 'delete'
Duration is the time the animation will take if play if allowed to play for its entirety.
PlaybackTime is the time we allow it to play in the sequencer. instanceId is the rsrc key
and overrides the name if both are present. If -filename is passed, animationName is loaded
from a discrete file, if not, it's loaded by the instance id of the hash of the last part.
-animID <animationID:uint32>
Loads an animation by AnimList ID. Invoke with 'spacebar' and stop with 'delete'
If no name or id is given then a random animation is chosen from the AnimList
-wait <waitTime:float>
Load as waiting period of waitTime seconds.
The following sequenced movement commands transition control immediate after starting,
so that you can move and play an animation at the same time.
To stop one before its natural finish you must interrupt with a new command of the same type..
-move <moveTime:float> [-speed <speed:float>] [-dir <angleDeg:float>]
Moves the character at the specified speed and direction for the specificed time.
Speed is in "meters" per second.
-targetCreature <creatureNum:int> <capsFOURCC:string> [-nearest]
Set the current creature's target to the "first" (or nearest) part of the specified
creature which matches our four-letter capabilty code (e.g " -targetCreature 4 frut -nearest")
-targetLocal <position:vector3>
-targetGlobal <position:vector3>
Set the current creature's target to a position either local to this creature or in global space
-turn <turnTime:float> <turnAngleDeg:float>
Turns a character the degrees given over the time given
-removeAnim <slotIndex:int> [-creature <creatureNumber:int>] | -all]
Remove animation at slotIndex.
-clearAnims [-creature <creatureNumber:int>] | -all]
Remove all animations.
-brainLevel <newLevel:int> [-creature <creatureNumber:int>] | -all]
Sets the specified creature's brain level to be newLevel .
-printAnimList
prints the AnimList to the console
-animFilter [<filter:string>]
filters the animation list dialog by string match, no argument to clear filter
-creatureFilter [<filter:string>]
filters the creature list dialog by string match, no argument to clear filter
-capture <filename:string> [-dt <seconds:float>] [-res <resolution:int>] [-stop]
Takes series of sequentially numbered screenshots every dt. Screenshots are output to the
UserData\Debug folder. The -stop flag stops the captures and resets the counter.
-camera [-zoom <distance:float>] [-rot <x-axis:float> <y-axis:float> <z-axis:float>]
Controls for camera zoom and rotation. Rotation angles are in degrees.
-tint (<red:float>, <green:float>, <blue:float>, <alpha:float>)
Tint the current creature.
-clearcolor (<red:float>, <green:float>, <blue:float>)
Set the background color.
-drawtiles <0|1>
Set the display of the tiles on the ground.
-planet <string> [-restart]
Set the planet name for next activate. The -restart flag immediately relaunches with the planet.
animmgr
-stats - prints animation system statistics; takes the following optional flags:
-crt - detailed stats about creatures
-aid - detailed stats about queued blender and animation instance cache
-asd - detailed stats about the procedural animation static data
-ba - detailed stats about baked animations
-ce - detailed stats about creature effects
-all - all of the above
-listprops - the anim version of the listProps cheat, basically equivalent to listProps -list CreatureAnim.prop
-prop - the anim version of the prop cheat, basically equivalent to prop -list CreatureAnim.prop
-clearcache - cache control; takes the following flags:
-asd - clear animation cache
-ba - clear baked animation cache
-all - all of the above
-preload - load the CreatureAnimPreloads.prop animations
-tintlod <0|1> - shortcut for -prop TintCreaturesByAnimLod
blue - high lod, fully procedural
magenta - medium lod, baked animations
red - low lod, 0 bone table, no animation, only rigid movement
app
App control: -pause, -unpause, -speed <float>, -step <ms:int>, -quit, -minimize
asc
Various audio system cheats shoehorned into one cheat.
-dump dumps the entire sound map out to the log
-dbg toggles debug mode on and off
-droplisten toggles leaving the listener in place
-showmic toggles showing the microphone position
-showprim toggles showing the primitives
baker
baker
Options:
-bake [<keyFilter:string>]
bake given buildings/vehicles/creatures/etc., switch to model viewer unless noSwitch is specified
-toData
after baking, promote baked resources to Data, ready for checking in as shipped content
-show
show result of baking in the model viewer
-force
force the baker to perform a full bake, ignoring existing resources on disk
-flush
flush resman after each bake
-rtts
show rtt list after each bake
-limit <n:int>
bake at most n models
-describeBlocks
dump text descriptions for all rigblocks to basePath or UserData/Debug/BlockDescriptions
-dumpPalettes
dump key information for each item in each palette
-processQueue <bool>
enable or disable processing of queued items
-dumpProfs
dump timing information for bakes completed
-validate [<keyFilter:string>]
print the validation information for the given buildings/vehicles/creatures/etc.
BehaviorController
BehaviorController [dump] [show]
behaviortree
behaviortree
Options:
-debug <int>
sets debug level
camera
-set <name:string>
Switch to the given camera type
-list
Lists current set of cameras
-bg <rgb:color>
Set background colour
-renderType <type:int>
Set render type of viewer
cinematic
<string>
Run given cinematic. Stop stops current, while Update reloads scripts.
Options:
clear
Clears the debug console
colorLocalized
no description
crash
crash the game (for testing)
directories
lists directories
dumpBudget
dump budget
Options:
dumpEffects
dumpEffects [<pattern:string>]
Dumps active effects, with optional wildcard
Options:
effect
effect [<effectName:string>]
Set the current effect and start it, or stop the current effect, if no effect name or options given.
Options:
-pos <x:float> <y:float> [<z:float>]
Where to place the effect, or move the current effect
-offset <p:vector3>
Where to place the effect, or move the current effect
-scale <s:float>
Scale the effect rigidly
-id <n:int>
Apply this command to effect slot 'n'. The default slot is 0. This can be used to run several effects simultaneously.
-start
(Re)start current effect.
-stop
Stop current effect.
-hard
Modifier on -start or -stop.
-soft
Modifier on -start or -stop.
-clear
Drop reference to the current effect. (for testing.)
-world <name:string>
Use given effects world rather than default one.
-edit
If file location tracking is on, open effect in editor
-floatParams <param:floatParams> <param0:float> ...
Set the given float params for the current effect. E.g., -floatParams color 0 1 0, or -floatParams emitRateScale 2
-model <name:string> [<set:int>]
Set an override model for the current effect.
-texture <name:string> [<set:int>]
Set an override texture for the current effect.
-models <names:string[]> <sets:int[]>
Set multiple override models for the current effect.
-textures <names:string[]> <sets:int[]>
Set multiple override textures for the current effect.
-frame <n:int>
Select the given texture particle frame.
-state <n:int>
Select the given state. (See the effect 'states' command).
-paused <bool>
Set whether current effect is paused.
-hidden <bool>
Set whether current effect is hidden.
-seed <int>
Set RNG seed
floatParams:
emitStrength
particleSizeScale
particleLifeScale
emitRateScale
transparency
color
colorList
targetPoint
explosionLocation
attractorLocation
attractorIntensity
viewRay
emissionVolume
positions
path
shaderParams
volume
heightRange
subdivWindow
mapForceScale
lodDistanceScale
distributeSizeScale
user1
user2
user3
user4
effectsManager
effectsManager
Used for querying and controlling the effects manager.
Options:
-stats
Lists various effect system statistics
-listActive [<pattern:string>]
Lists all active worlds and their effects
-list [<pattern:string>]
Lists all worlds and their effects
-internal
in addition, shows internally-spawned effects
-all
shows all effects: user, internal, and children of either of those
-listEffects [<pattern:string>]
Lists all or specified effects
-where [<pattern:string>]
Lists specified effects and shows where in the script files they come from
-edit [<name:string>]
Opens the given effect for editing
-kill [<pattern:string>]
Kill any orphaned effects, or, with pattern, the named effects
-killAllBut [<pattern:string>]
Kill any orphaned effects, and, all effects except the one specified as pattern
-showBounds <on:bool>
Show particle system bounds
-showSurfaces <on:bool>
Show collision surfaces
-showEffects <on:bool> [<size:float>]
Show effect locations
-windDir <vector3>
Set global wind direction
-sunDir <vector3>
Set global sun direction
-noAlpha <on:bool>
Force no alpha in particles -- makes amount of overdraw clearer
-appFlag <flag:int> <setting:bool>
Set the given application flag
-lod <float>
Set current LOD.
-worlds
List current worlds
-createWorld <id:int> [<debugName:string>]
Create new effects world with given ID and optional debug name
-removeWorld <id:int>
Remove effects world with given ID
-memStats
Lists various memory statistics
-version
Print current effects script version
-v
Shorthand for -version
-save
Save any resource sections
-load <name:string>
Load effects from given resource.
-unload <name:string>
Remove effects from given resource
-collections
List currently loaded collections
-state <worldState> [<world:string>]
Set state of default world, or given world if specified
worldState:
active
pause
inactive
hidden
manual
shutdown
ev
evaluates the given expression
flora
-clear [<face:int>]
clear all plants from planet/planet face
genCubeMap
Capture a cube map from selected point
Options:
-res <int>
Cubemap image size
-offset <vector3>
Center point of cube capture
-useCamPos <bool>
Just use camera position as center
-genSH <bool>
Generate Spherical Harmonics coefficients
-outCoeffs <string>
Write the SH coefficients to a file
-brightenDir <vector3>
Brighten a sun direction while generating SH coefficients
-flip <bool>
Flip the camera while capturing
-replace <bool>
Replace current skybox with captured one
-dump
Dump cubemap rasters
genFragments
no description
genSceneViews
Capture 6 orthographic views of an object
Options:
-res <int>
Size of captured images
-boxCenter <vector3>
Center point of cube capture
-useCamPos <bool>
Just use camera position as center
-boxSize <float>
How big is your object?
-flip <bool>
Flip the camera while capturing
-file <string>
Output file path
globalthermonuclearwar
Simulates a bad end to the Cold War
gonzago
gonzago [nouns <show | hide >]
[input <show | hide | load (filename) >]
[simulators <show | hide | hide #first #last>]
[menus <debug | normal>]
[citynav <lanes | forces | off>]
[physcis <havok | gonzago>]
[creatureanim (filename) [numloops]]
[herddebug <on | off>]
[nestlevel <int:level>]
[ban #keytype #keygroup #keyinstance]
[numrelationships] ... prints the size of the map in the relationship simulator to the console
[name_gen <planet | star | tribe | creature | city | building | vehicle | all> (count)]
... prints out a list of randomly generated names of the given type, will print 20
if no count is specified.
[tribes] ... prints info about all the tribes on the planet
[dumptelemetry <on | off | inject>] ... inject submits inject.dat to the server. 'on' creates a file for future injection
help
help [<nameOrPattern:string>]
Return help for all cheats, or all cheats matching the given pattern, or the
cheat with the given name. Options:
-all
Include basic script commands as well as cheats.
hints
enable or disable hints temporarily. use 'hints -off' / 'hints -on'
history
[<items:int>] Lists the last n commands in the command history
jobs
Show job manager status
key
<keyName:string>
Prints corresponding hex key as <type> <group> <instance>
<type:int> <group:int> <instance:int>
Tries to translate numerical key to a name
-d
Prints unsigned decimal instead of hex (useful for level save files with ids)
lights
Options:
-list
list all lighting worlds
-listStates
list all lighting states
-set <stateName:string> [<drawSet:int>]
switches the lighting state of the current world
-world <worldName:string>
specifies world to use (otherwise current default world is assumed)
listProps
[<pattern:string>]
list only properties matching pattern
-list <name:string>
use given list rather than app properties
log
<group:string> <level:all|min|debug|info|warn|error|fatal|none> <message:string>
logger
-addFileReporter <name:string> <path:string>
Add a reporter that writes to the given file under the given name
-addDebugReporter <name:string>
Add a reporter that writes to debug output
-addDialogReporter <name:string>
Add a reporter that writes to a dialog box
-globalLevel <level>
Set default log level for entire system
[<reporter:string>]
Either act on the given reporter, or list the current set of reporters
-level <level>
Set the default output level on the reporter.
-groupLevel <group:string> <level>
Set the output level for the given group on the reporter. (You can specify more than one -groupLevel option.)
-format <format1> ...
Specify one or more additional display options. Choices: none timeStamp deltaTimeStamp date group level
-location <level>
Optional addition to -format: at this level or above, the location of the original log statement will be logged.
material
Options:
-scriptHelp <command:string>
Get help about material script command.
-dumpShaders
enables dumping shaders to disk as they're generated
-dumpShaderAsm <bool>
sets whether to dump shader assembly too
-prefixCount
prefix instruction count to asm filenames for convenient sorting
-listEnums
List all script enums.
-html
Use html format for listing.
-listFragments
List all vertex/pixel shader fragments.
-dumpVSFragment <name:string> [<number:int>]
Dump shader fragment corresponding to given builder.
-dumpPSFragment <name:string> [<number:int>]
Dump shader fragment corresponding to given builder.
-dumpShaderUse
dump shaders used on next frame render
-save
Save out current set of materials/shaders in binary form.
memory
Options:
-capture <bool>
Log allocation callstacks if 'true', stop logging and output results if 'false'
-dumpFilter <prefix:string>
Dump memory allocations that match the given tag prefix
-dumpFrame [<frame_count:int>]
Log all memory allocations for next 'frame_count' frames (one frame by default)
-dumpLeaks <bool>
Enable/disable the memory dump at shutdown (default 'true' in Debug builds only)
-dumpVTables <bool>
Enable/disable vtable lookup during memory dumps (kind of slow, default is 'false')
-dump [<sort_mode:sortType>]
Dump all allocated memory blocks to a file in UserData/Debug (optional sort: 'order', 'addr', 'size', 'tag', 'file')
-show
Display memory dump in memdirstat
-brief
Hide non-essential memory info in the status display
-breakdown
Output breakdown of memory usage by system in the status display
-filter <prefix_list:string>
Track each space-separated tag prefix in the status display (ex: "SP_ EASTL Anon")
-log_size <size:float>
If (alloc+free) > log_size, all frame data will be logged. 'size' is assumed to be in MB.
-log_factor <size:float>
If (alloc+free) > log_factor*(average_alloc+average_free), all frame data will be logged.
-smoothing <smoothing:float>
Sets the smoothing factor of stats data - between 0 and 1 (smoothest).
sortType:
addr
size
tag
file
vtable
sequence
mode
Show app mode, Set new app mode, or list all modes [-list]
model
[<modelName:string>]
Load and display the named model. See also modelTest.
Options:
-array <n:int> <modelName:string>
Instantiate given model n times
-load <modelName:string>
Load model world model
-add <modelName:string>
add model world model to existing scene
-edit <modelName:string>
Edit model definition
-loadGroup <modelGroup:string>
Load group of model world models
-multiBlend
use multi-blender (in combination with -load, -add, -loadGroup)
-position <vector3>
Set position of new model
-highlight [<type:int>]
Set model highlight, or clear highlight if no argument
-color <rgba>
Set color of model
-identity <bool>
Cycles through identity colors defined in prop
-texture <name:string> [<region:int>]
Set override texture for model
-uvType <uvType> [<constants:float[]>]
set custom shader data constants for model material
-materialParams <gloss:float> [<specStrength:float> <exponent:float> [<invBump:float>]]
set given material params
-shaderData <constants:float[]>
set custom shader data constants for model material
-animIDs
List animation IDs
-regions
List regions
-visible <bool>
Set model visibility
-inWorld <bool>
Set whether model is in world
-effects <running:bool> [<id:int>]
Set whether model effects are running
-effectsColor <rgba> [<id:int>]
Set tint colour on model effects
-updatePickMesh
Update model's pick mesh to match any applied (non-rigid) animation
-lod <int>
Set LOD of model
-split
Run Split Test on model
uvType:
projectXY
projectXZ
projectYZ
boxmap
cylinder
cylinderZ
disc
cylinderX
cylinderY
user1
user2
user3
user4
modelTest
Options:
-create <modelType> <modelName:string> [<materialName:string>]
Creates the given type of model, and registers it under the given name, with optional material.
-tess <tessLevel:int>
Sets tessellation level for -create.
-pca <pcaTexture:string> <pcaFPS:float>
Sets the pca texture for the current model
-async <modelName:string>
Run asynchronous resource loading test
-dump [<modelName:string>]
Dump contents of given model's arena
-verts <int>
Dump up to n vertices from mesh
-bake [<modelName:string>]
Bake given model, save as ModelViewer!Test, display
-indexes <int>
Dump up to n indices from mesh
-transform
Transform the mesh and redisplay
-adj
Finds ajacency info for given model, displays results by colouring edge vertices
-weld
Welds positions of given model and redisplays
-weldAll
Welds all elements of given model and redisplays
-compact
Compact given model
-skin
Skin the mesh and redisplay
-morph
Display the model using the morph engine
-hull
Also create pick hulls when baking
-glue
Glue all meshes together when baking
-sections
Colours individual mesh sections
-bones
Colours mesh bones
-prims
Colours individual mesh primitives
-stress <count:int>
Stress test mesh creation/destruction
-cache
Cache resulting model to disk
-set <setIndex:int>
Select particular data set from mesh
-decimate <factor:float>
decimate model
-cluster [<maxErr:float>]
face cluster model
-uvgen [<maxErr:float>]
generate unique uvs using clusterer and charter
-showUVs [<set:int>]
show UV chart of meshes
-lods
do the full background LOD generation bake, save results to disk cache
-texture [<name:string> [<coords:int>]]
assign texture to the baked model
-stream [<modelName:string>]
extract meshes and draw via streaming
-simplify <modelName:string> [<targetFaces:int> [<maxError:float>]]
Simplify given model, save as ModelViewer!Test, display
-skeleton
update skeleton pose xforms from base mesh
-runtime <modelName:string>
convert current model into runtime model
-impostor [<resolution:int>]
render impostor textures
-res <res:int>
dump file res (for impostors, etc)
-cellStage <cellStage:float>
sets the cell stage shader data
-listMeshes [<keyFilter:string>]
list info about all the given .gmsh resources. with -dump, dumps mesh info for every single mesh.
-instanceSet
show or hide test instance set
-dxt3 [<name:string>]
DXT3 compresses current texture (or given one), putting the result in ModelViewer!Test
-quality <int>
Set 0..100 compress quality
modelType:
sphere
quad
box
cylinder
cone
arrowhead
axes
modelWorld
Options:
-listActive
List active worlds
-list [<name:string>]
List all worlds, or info about a particular world
-all
Additionally show out-of-world models
-visible
Show only visible models
-counts
With -list, show number of instances of each mesh type
-listGroups
List groups and corresponding flag indexes
-world <id:int>
Use this world rather than the default in operations below
-dumpFrame
Dump all models rendered on the next frame
-debugPick
Enable debug model picking via control-shift-alt-left-click
-resetDebugPick
Disable debug model picking for all worlds
-clearPicks
Clear debug selection info (e.g. from debug pick) from all models
-debug <shaderDebugType>
Set shader debug type for picked objects
-sphereQuery <centre:vector3> <r:float>
highlight results of sphere query with given settings
-boxQuery <min:vector3> <max:vector3>
highlight results of box query with given settings
-rayQuery <origin:vector3> <dest:vector3> [<width:float>]
highlight results of ray query with given settings
-lineQuery <p0:vector3> <p1:vector3> [<width:float>]
highlight results of line query with given settings
-level <pickLevel>
set pick level for queries
-markMeshes [<count:int>]
Highlight models with a large mesh count (defaults to 8).
-preload <propName:string> [<set:int>]
Preload given list of models
-checkModelsHaveLOD
print a list of all .props that can be loaded as a model, but don't have lod distances set
-addOcc <p:vector3> <r:float>
Add given spherical occluder
-updateOcc <id:int> <p:vector3> <r:float>
Update given spherical occluder
-removeOcc <id:int>
Remove given spherical occluder
pickLevel:
sphere
box
hullTri
meshCluster
meshTri
shaderDebugType:
none
standard
explode
uvExplode
diffuse
specular
normal
user1
user2
user3
user4
movie
[<name:string>]
Play movie (or stop current movie with no arguments)
Options:
-scale <float>
Set scale factor
-pause
pause playback
-unpause
unpause playback
-draw <drawType>
Set draw type for playback
-fade <seconds:float>
Set fade in/out time
-record <name:string> [<time:float>]
Record movie. Either give a time, or run 'movie' again with no arguments to stop.
-size <width:int> <height:int>
Set size for recorded movie
-quality <float>
Set quality for recorded movie, 0-1
-fps <float>
Set FPS for recorded movie
-noUI
Don't record UI
-noAudio
Don't record audio
drawType:
standard
bw
thresh2
thresh4
mtr
Creates a trade route between player's city and all other cities in the world.
noAsserts
-debugger
Disables debugger logging
-console
Disables console logging
offlineEffect
<string>
print info about texture
Options:
-seed <int>
set seed
-delta <int>
set virtual ms per update
-limit <float>
set time limit in seconds
option
no arguments lists all options
[option] list value of given option
[option value] sets option
-reset reset all options to default
-save save current options
otdb_test
-get_key_params <SPID key name>
dump otdb parameters associated with the given file/key
-get_id_params <SPID key name>
dump otdb parameters associated with the given server id, if that asset has been downloaded.
-get_asset_breakdown
prints the asset breakdown (pollinated/user created/perforce) to the console
-reindex
force otdb re-index.
pausegate
Increments/decrements pause gate counters or prints their current values. Example usage:
pauseGate
pauseGate -inc <gate id:hex>
pauseGate -dec <gate id:hex>
planetImpostor
Options:
planetTestBed
Options:
-num <int>
number of iterations
-seed <int>
Seed value (not specifying this will result in a random seed)
-snapshot <bool>
take a snapshot (outputs to log dir, doesn't work with offline effects)
-allScripts <bool>
run all current planet scripts
-starterScripts <bool>
run starter planet scripts
-res <int>
snapshot res
-cubemap <bool>
generates a cube map from orthogonal views of the effect
-thumbnail <bool>
generates thumbnails without atmosphere
-random <bool>
use random seed within seed range or after specified seed for subsequent iterations
-seedIn <int>
Seed range in value
-current <string>
Current planet is first capture
-seedOut <int>
Seed range out value
-png <bool>
Output png format (rather than tga
-waterLevel <float>
Set water level
-script <int>
Force script number
pollen
-get <assetID:integer>
download the specified asset ID.
-getBatch <subtype:Creature|TribeCreature|BuildingCityHall...> <count:integer>
download <count> assets of type. -1 for ALL assets of type.
-serverID [<key name> | <hex triplet>]
get server ID of local asset
profiler
profiler
Options:
-show [<mode:int>]
Show the profiler (optionally, set display mode: 0/1/2 = brief/normal/extended)
-hide
Hide the profiler
-alpha <float>
Set the profiler's alpha level (1.0 = fully opaque)
-pause <bool>
Pause or unpause the profiler
-history <int>
Set number of frames to go back in history (0 = current frame)
-dump
Output the current profiler display to the cheat console and logging system
-debugDump
Write full heirarchical breakdown of the current frame to the Debug folder
-freezeTime <seconds:float>
Automatically pause the profiler when frame exceeds time limit (0 to disable)
-freezeScope <exactname:string> <seconds:float> [<entrycount:int>]
Automatically pause when specific scope exceeds time limit or entry count ("" 0 0 to disable)
-filter [<string>]
Filter the current profiler view using a substring match ("" to disable)
-logTime <seconds:float>
Output the profiler display whenever frame exceeds time limit (0 to disable)
prop
<name:string> <value:bool> Sets app property
quit
Quit game
raid
raid -start <bomberCount fighterCount> will attack the current planet with the specified ships
raid -stop will clear out any attacking UFOs on the planet
raid -plunder will attack create a pirate plundering event
raid -repair repair all of the rubbled buildings on the planet
raid -turrets fills all cities on the planet with max turrets
refreshplantmaskmask
Forces a refresh of the city/tribe map (flora clear mask)
renderer
Options:
-list
list currently active layers
-select <start:layer> [<end:layer>]
only render the given layer or layer range
-enable <start:layer> [<end:layer>]
enable the given layer or layer range
-disable <start:layer> [<end:layer>]
disable the given layer or layer range
-clear
go back to rendering all layers
-setOpaque <layer> <bool>
set whether layer is opaque
-showTexture <name:string>
show given texture
-hideTexture <name:string>
hide given texture
-clearTextures
clear all textures
-dumpShaderData
dump shader data after each layer
-flushGPU <bool>
flush GPU pipeline after every rendering call for accurate profiling
-gamma <float>
set gamma for device
-flip <width:int> <height:int> [<fullscreen:bool> [<display:int>]]
flip video mode
-debugPS <debugInfo> [<limit:float>]
Set type of info to display when DebugPS=1. The optional limit can be used to adjust that max displayed value for things like bone count.
-memStats
Show mem stats for GPU resources
layer:
ClearBuffer
ShadowMapWorld
ShadowMapUpdate
Shadows
CellBackground
Background
SolarBackground
Planets
TerrainRTT
Terrain
PlanetRibbons1
TerrainModels
BlobShadows
PreMain
Main
PostMain
CreatureAnim
EffectsMask
Effects
ShadowEffects
Clouds
PostEffects
FrameBufferEffects
EmpireLines
CellGameForeground
PlanetRibbons2
Overdraw
Movie
SporepediaShadows
UI
Swatches
ForegroundEffects
DebugDraw
Profiler
ShowTextures
MovieRecord
debugInfo:
none
batch
instance
shaderType
shaderID
elements
elementSize
elementAlign
vertices
indices
psInstructions
vsInstructions
weights
bones
textures
textureSize
textureMIPs
psConstants
vsConstants
layer
resource
dumpEffects
Options:
-list [<keyFilter:string>]
list all resources, optionally filtered.
-listMem [<keyFilter:string>]
list resources in memory (and registered), optionally filtered by the given type and/or group. e.g. -listMem .prop
-listTypes [<keyFilter:string>]
list types and counts of all resources
-listMemTypes [<keyFilter:string>]
list types and counts of resources in memory
-listGroups [<keyFilter:string>]
list groups of all resources
-listMemGroups [<keyFilter:string>]
list groups of all resources in memory
-flush [<keyFilter:string>]
unregister all given manually cached resources in memory
-flushCache <cacheType>
flush the given specialist cache
-load [<keyFilter:string>]
load the given resources
-save [<keyFilter:string>]
save the given resources to Debug directory
-as [<type:string>]
with -load, overrides the resource type; with -save, overrides the record type
-savePacked [<keyFilter:string>]
save the given resources to test.package in Debug directory
-refs
when listing resources, show the number of references, if any, and cache type
-where
show where resource comes from on disk
-from <path:string>
only show resources that come from the given path on disk
-listGroupScheme
list names for group scheme
-listCaches
list contents of the various memory caches
cacheType:
manual
explicit
null
shortTerm
models
texture
user1
user2
user3
user4
RTT
Options:
-list
List currently allocated pages
-dump
Dump all the render target textures in memory
settime
Sets the time of day at the avatar's position, and optionally a speed multiplier. Example usage:
SetTime (h, m)
SetTime -speed <multiplier:float>
showLights
Options:
-radius <float>
Radius of the sphere on which directional lights will be placed
showpaths
Toggle whether or not to show vehicle path-planning paths
showPause
no description
showplantmaskmask
toggles whether the plant controller shows the city/tribe mask
skinpaint
skinpaint <string>
effect name (no 'skinpaint_' prefix), or 'wipe' or 'splat'
Options:
-seed <int>
set seed
-vis
enable debug visualization
sound
Specify on or off to turn audio system on or off.
species_query
[-<param> <min> <max> [-<param> <min> <max>]...] | [-dump <param>] | [-dumpFull <param>]
-cost <min> <max>
-baseGear <min> <max>
-height <min> <max>
-carnivore <min> <max>
-herbivore <min> <max>
-numGraspers <min> <max>
-totalAttack <min> <max>
-attack <min> <max>
-cuteness <min> <max>
-totalSocial <min> <max>
-social <min> <max>
-numFeet <min> <max>
-meanLookingScore <min> <max>
-biteCapRange <min> <max>
-strikeCapRange <min> <max>
-chargeCapRange <min> <max>
-spitCapRange <min> <max>
-singCapRange <min> <max>
-danceCapRange <min> <max>
-gestureCapRange <min> <max>
-postureCapRange <min> <max>
-glideCapRange <min> <max>
-stealthCapRange <min> <max>
-sprintCapRange <min> <max>
-healthCapRange <min> <max>
spinLights
Options:
-radius <float>
Radius of the sphere on which directional lights will be placed
-phi <float>
constant to add to phi value every tick
-theta <float>
constant to add to theta value every tick
starmanager
starmanager -dump <home|current|empires|status> -test
state
[<state:string>]
Switch to given state.
Options:
-list
List all states
-next
Move to next state
-prev
Move to previous state
-reload
Force script file to reload
status
outputs current status window lines to log
swatchcamera
-set <name:string>
Switch to the given camera type
-list
Lists current set of cameras
-bg <rgb:color>
Set background colour
-renderType <type:int>
Set render type of viewer
takeSnap
Capture the screen into cameraSnapshot
Options:
-dump <string>
Save the capture to a file
-res <int>
Size of captured image
-png <int>
if 0, output tga, otherwise output PNG
-renderUI
Capture UI in snapshot
takeThumb
Capture thumbnail
Options:
-res <int>
The size of the captured image
-dump <string>
Save the capture to a file
-camera <string>
Camera Prop file to use for thumbnail capture
terrain
Options:
-loadPlanet <keyName:string>
load given planet
-definePlanet <keyName:string> <scriptName:string>
define planet as using a specific script (rather than it being randomly selected)
-info
show script info about the current planet, including which terrain script it's using
-waterHeight <float>
set water height [0, 1]
-waterScore <float>
set water score [0, 1]
-terraform <temperature:float> <atmosphere:float>
set terraform values, and by implication water level.
-distTypes
list terrain distribute info.
-setDistType <distType:int> <keyName:string>
set given dist type to the given model
-snap <name:string>
save a picture of the current planet to UserData/PlanetCache
-showDist <id:int>
show locations of samples for the distribute that has the given message ID
-footprint <keyName:string> <position:vector3>
apply given footprint at given position
-clearFootprints
clear all footprints
-playerMod <keyName:string> <position:vector3>
add given player mod at given position
-playerColors <terrainColorID:int> <atmosColorID:int> <waterColorID:int>
set given player colors
-clearMods
clear all player effects and game model footprints
-saveMods
save current planet instance, including player effects and game model footprints
-reset [<keyName:string>]
save current planet instance, including player effects and game model footprints
-showTA
show terraform scores (temperature/atmosphere) of all terraformable (space) planets
-lodScale <scale:float>
set lod scale factor for current planet
-savePlanets <name:string>
save planet definitions to given file in UserData/Games
-loadPlanets <name:string>
load planet definitions from given file in UserData/Games
-clearPlanetCache
clear planet definition cache
-clearPlanets
clear planet definitions back to starting state
terrainEffectTest
Terrain Effect Test Cheat
terrainScript
Options:
-clear
clear the script
-list
list current set of effects
-undo [<count:int>]
undo last effect added to script
-play
play the script from the start
-save <name:string>
save current script under given name in UserData/Planets
-load <name:string>
load given script
-model <modelName:string>
set model to place on control-click
-undoModel
undo last model added
-clearModels
clear all models
-theme <propFile:string>
set theme to use for this script. (scripts can share categories that define things like ambient effects.)
-rotateAll
rotate all effects and models
testBed
<string>
print info about effect
Options:
-num <int>
number of iterations
-seed <int>
Seed value (not specifying this will result in a random seed)
-snapshot <bool>
take a snapshot (outputs to log dir, doesn't work with offline effects)
-cubemap <bool>
generates a cube map from orthogonal views of the effect
-log <bool>
output to log
-random <bool>
use random seed within seed range or after specified seed for subsequent iterations
-seedIn <int>
Seed range in value
-seedOut <int>
Seed range out value
-delta <int>
set virtual ms per update
-limit <float>
set time limit in seconds
tester
-run <test_name:string>
Runs specified test:
-ea_asserts
Enable EA Asserts during testing. Optional for -run flag.
-test_asserts
Enable Test Asserts during testing. Optional for -run flag.
-min_output
Suppress output of commands and sleep messages in AutoTest.log. Optional for -run flag.
Usage example: tester -run TestScript SPG_Serialization
Usage example: tester -run TestScript Performance\sound_test_space
-trackfps
Enables TrackFPS system with default arguments. Output goes to AutoTest log.
-end
Explicity ends the TrackFPS session. Optional for -trackfps flag.
-acceptable_fps <float>
The minimal acceptable FPS. If FPS drops below this rate, a framedump will get triggered. Default: 5. Optional for -trackfps flag.
-framedump_interval <int>
The number of frames before another framedump can be triggered to prevent spamming. Default: 30. Optional for -trackfps flag.
-framedump_screenshots <bool>
If true, outputs a screenshot after the framedump. Default: true. Optional for -trackfps flag.
-sampling_rate <float>
Sampling rate in seconds. If 0, samples every frame. Default: 0. Optional for -trackfps flag.
-duration <float>
Duration of sampling in seconds. If 0, samples continuous. Default: 0. Optional for -trackfps flag.
-event <string>
Outputs an event tag in a format that can be used by post-process graphing scripts.
-diskhits
Enables the DiskHits Tracker. Output goes to AutoTest log.
Usage example: tester -trackfps -acceptable_fps 5 -framedump_screenshots true
Usage example: tester -trackfps -end
Given no parameters, prints out the list of available tests but only TestScript is supported.
textures
[<name:string>]
print info about texture
Options:
-list
list all active/cached textures
-listAll
list all active/cached textures, including those in model arenas
-bySize
sort by size
-byKey
sort by key
-system
system memory textures only: managed static textures with system memory impact
-nonSystem
non-system textures only
-dump [<name:string>]
Writes specified texture to textures/dump dir.
uilayout
-load <layout_name:string>
Loads specified layout. Optional.
-unload <layout_name:string>
Unloads specified layout. Optional.
-textures [-onDisk]
Lists current UI textures, and total size.
Given no parameters, prints out the list of loaded layouts.
uitools
[on|off]
Dumps information about an object or general info. With no parameters dumps general UI info.
-info [windows|window|cursor_ui]
Dumps information about an object or general info. With no parameters dumps general UI info.
-enable [rebuild_markers|cursor_info|rollover|mouse_info|capture_window|capture_parent|no_ticks|no_rebuilds|textures]
Enables debug features. With no parameters enables UI tools.
-disable [rebuild_markers|cursor_info|rollover|mouse_info|capture_window|capture_parent|no_ticks|no_rebuilds|textures]
Disables debug features. With no parameters disables UI tools.
-enable_message_log [active|all|tick|rebuild|input|kb|mouse|other|xform|mouse_move]
Includes messages in the message log.
-disable_message_log [active|all|tick|rebuild|input|kb|mouse|other|xform|mouse_move]
Excludes messages from the message log.
-max_widget_polygons [count]
Specifies the limit for widget polygons to be drawn.
With no parameters dumps general UI info.
usermusic
no description
validateHeap
validateHeap [<level>]
Check memory blocks for corruption (must specify level or -auto)
Options:
-auto <int> [<level>]
Auto check after every N heap operations - use 0 to disable
level:
none
basic
detail
full
ViewManager
ViewManager [dump] [views <on/off/old_school/standard>]
vwep
vwep {weapon number} changes all vehicles in game to given weapon